using Gameplay.PVE.Entity;
using Yoozoo.Libs;

namespace Gameplay.PVE
{
    public enum ESpecialActionState
    {
        None,
        Playing,
    }
    public class SpecialActionBase : IClass
    {
        public EControlType controlType;
        public ESpecialActionState state;
        public ControlElement element;
        protected BattleUnit unit;
        void IClass.OnReset()
        {

        }

        public void Init(BattleUnit unit)
        {
            this.unit = unit;
        }

        public virtual void Start(AddControlArg arg)
        {
            state = ESpecialActionState.Playing;
            element = arg.element;
        }

        public virtual void Update()
        {
            
        }

        public virtual void Free()
        {
            unit = null;
            element = null;
            state = ESpecialActionState.None;
            controlType = EControlType.None;
        }
    }
}